package com.qdlc.p2p.biz.service;

import com.qdlc.p2p.dal.dto.CooperationLogin;
import com.qdlc.p2p.dal.dto.User;

public interface CooperationLoginService {

	/**
	 * 新增联合登录信息
	 * 
	 * @param cooperation
	 */
	public void addCooperationLogin(CooperationLogin cooperation);

	/**
	 * 据openId和type查询联合登录信息
	 * 
	 * @param openId
	 * @param type
	 * @return
	 */
	public CooperationLogin getCooperationLogin(String openId, int type);

	/**
	 * 联合登录注册
	 * 
	 * @param user User实体类
	 * @param openType 联合登录类型
	 * @param openId 联合登录开放ID
	 * @return User实体类
	 */
	public User doQQRegister(User user, String openType, String openId);
}
